﻿using GameFramework;
using GameFramework.Event;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TowerDefence_Zombie
{
    public class UpdateCarSkillTimeEventArgs : GameEventArgs
    {
        public static readonly int EventId = typeof(UpdateCarSkillTimeEventArgs).GetHashCode();

        public float RemainingTime { get; private set; }

        public UpdateCarSkillTimeEventArgs()
        {
            RemainingTime = 0;
        }

        public override int Id
        {
            get
            {
                return EventId;
            }
        }

        public static UpdateCarSkillTimeEventArgs Create(float remainingTime, object userData = null)
        {
            UpdateCarSkillTimeEventArgs UpdateDoubleGlobTimeEventArgs = ReferencePool.Acquire<UpdateCarSkillTimeEventArgs>();
            UpdateDoubleGlobTimeEventArgs.RemainingTime = remainingTime;
            return UpdateDoubleGlobTimeEventArgs;
        }


        public override void Clear()
        {
            RemainingTime = 0;
        }
    }
}
